﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.ServiceProcess;
using System.Text;

namespace AdobePolicyFileServer
{
    partial class PolicyServerService : ServiceBase
    {
        TCPServer server = new TCPServer();
        public PolicyServerService()
        {
            InitializeComponent();
            if (!EventLog.Exists("PolicyServerService"))
            {
                //EventLog.CreateEventSource("PolicyServerService", null);
            }
            //server.Logger = evLogger;
        }

        protected override void OnStart(string[] args)
        {
            server.Start();
        }

        protected override void OnStop()
        {
            server.Stop();
        }
    }
}
